package com.uinnova.springboot.demo.mongodb;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @author 张攀钦
 * @date 2018-12-25-23:40
 * ${DES}
 */
@Document(collection = "user")
@Data
public class User implements Serializable {
    private static final long serialVersionUID = 8593206638269701308L;

    @Id
    private String id;

    private String name;

    private String age;

}
